package types

type UserShop struct {
	BaseModel
	Uuid           string `json:"uuid"`
	ShopName       string `json:"shopName" form:"shopName" binding:"required"`             // 店铺名称
	ShopAddress    string `json:"shopAddress" form:"shopAddress" binding:"required"`       // 店铺地址
	ShopPictureKey string `json:"shopPictureKey" form:"shopPictureKey" binding:"required"` // 店铺图片
	ShopInfo       string `json:"shopInfo" form:"shopInfo"`                                // 店铺介绍
}

func (UserShop) TableName() string {
	return "user_shop"
}

type ShopListStruct struct {
	PageStrct
	KeyWords string `json:"keywords" form:"keywords"`
}

type ShopListResponse struct {
	List  []UserShop `json:"list"`
	Total int64      `json:"total"`
}
